#include "mainwindow.h"
#include "ui_mainwindow.h"
#include"QDockWidget"
#include"QLabel"
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QDockWidget * dock=new QDockWidget(this);
    this->addDockWidget(Qt::AllDockWidgetAreas,dock);
    QWidget *content = new QWidget();
    // 添加内容组件和布局
    dock->setWidget(content);
    QLabel*label=new QLabel(content);
    label->setText("子窗口");


}

MainWindow::~MainWindow()
{
    delete ui;
}

